Skip to content

Fixed nether and end waypoints and markers saved before #6747 loading as overworld - #6856

Open
dekrom wants to merge 1 commit into
MeteorDevelopment:masterfrom
dekrom:fix/legacy-dimension-values
Open

dekrom wants to merge 1 commit into
MeteorDevelopment:masterfrom
dekrom:fix/legacy-dimension-values

Conversation

@dekrom

@dekrom dekrom commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

Between #6419 and #6747 Dimension#toString() returned the namespaced id, and EnumSetting saves
toString(), so Nether and End waypoints and markers saved in that window hold
"minecraft:the_nether" / "minecraft:the_end". Since #6747 those no longer parse and load as the
default, Overworld, so the waypoints show up in the wrong dimension. Overworld ones aren't
affected because the default isn't saved.

This falls back to matching toIdentifier() when a dimension setting doesn't parse. It's a bit
specific for EnumSetting, but waypoints and markers both go straight through Settings#fromTag,
so this is the one place that covers both, and addons with a dimension setting too.

It only helps for data that hasn't been saved again yet. Once a build with #6747 has loaded and
saved a waypoint file, the value is already Overworld in it. Markers are saved with the modules,
so for anyone who already ran a newer build those are gone, but waypoint files for worlds you
haven't joined since are still fine.

Related issues

#6747

How Has This Been Tested?

Waypoint file with the dimension saved as "minecraft:the_nether": .waypoint list said Overworld
before and Nether after, and it saves back as "Nether".

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@Powie69

Powie69 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

sorry 🤭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants